package com.javasm.pk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.pk.domain.PkSeed;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface PkSeedMapper extends BaseMapper<PkSeed> {
    @Update("update pk_seed set value=value+#{interval}, version=version+1 where type = #{type} and version=#{version}")
    int update(@Param("type") String type, @Param("interval") long interval, @Param("version") long version);
}
